package com.inspinia.base.common.model;

import java.util.EventObject;

/**
 * Created by veblen on 2017/2/24.
 */
public class UserLoginEvent extends EventObject {
    /**
     * 用户名
     */
    private String username;
    /**
     * 用户id
     */
    private Long userId;

    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public UserLoginEvent(Object source) {
        super(source);
    }

    public UserLoginEvent(Object source, String username, Long userId) {
        super(source);
        this.username = username;
        this.userId = userId;
    }

    public UserLoginEvent(Object source, String username) {
        super(source);
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

}
